// ============================== 导出正则映射 ============================== //

export default {
  /**
   * 链接正则
   */
  REG_LINK: /^http(s?):\/\/[\w-]+(\.[\w-]+)+/,

  /**
   * 邮箱正则
   */
  REG_EMAIL: /^[\w-]+@[\w-]+(\.[\w-]+)+$/,

  /**
   * 姓名正则
   */
  REG_NAME: /^[\u4e00-\u9fa5][·\u4e00-\u9fa5]{0,18}[\u4e00-\u9fa5]$/,

  /**
   * 手机号正则
   */
  REG_PHONE: /^1[3-9]\d{9}$/,

  /**
   * 车牌号正则
   */
  REG_CAR_NO:
    /^[京津晋冀蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼渝川贵云藏青甘陕宁新][A-HJ-NP-Z]([A-HJ-NP-Z\d]{4}[A-HJ-NP-Z\d港澳领警学挂]|[A-HJK][\dA-HJ-NP-Z]\d{4}|\d{5}[A-HJK])$/,

  /**
   * 身份证号码正则
   */
  REG_ID_NO:
    /^(1[1-5]|2[1-3]|3[1-7]|4[1-6]|5[0-4]|6[1-5]|71|8[1-3]|91)\d{4}(19|2\d)\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}[\dX]$/,

  /**
   * 旧版身份证号码正则
   */
  REG_ID_NO_OLD:
    /^(1[1-5]|2[1-3]|3[1-7]|4[1-6]|5[0-4]|6[1-5]|71|8[1-3]|91)\d{4}\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}$/,

  /**
   * 图片正则
   */
  REG_IMAGE: /\.(png|apng|jpg|jpeg|bmp|gif|svg|svgz|ico|webp)$/i,

  /**
   * 音频正则
   */
  REG_AUDIO: /\.(mp3|wma|wavaac|ape|m4v||ogg|oga|flac)$/i,

  /**
   * 视频正则
   */
  REG_VIDEO: /\.(mp4|avi|wmv|flv|ogm|mpg|mpeg|webm|ogv|mov|asx|m4v)$/g,
}
